<template>
    <p>$appName:{{$appName}}</p>
    <button @click="$logger('clicked')">logger</button>
    <button @click="handleClick">logger</button>
</template>
<script setup>
import {getCurrentInstance} from 'vue';
const {proxy} = getCurrentInstance();
console.log(proxy.$appName);
const handleClick = ()=>{
    proxy.$logger(proxy.$appName)
}
</script>